package nkr1pt.popkorn.schedule.triggers;

import java.text.ParseException;
import org.quartz.CronTrigger;

/**
 * Specialized CronTrigger which triggers every day at 00:10.
 *
 * @author Kristof Vanhaeren
 */
public class NightlyTrigger extends CronTrigger {

    private static final String CRONEXPRESSION = "0 15 1 * * ?";

    public NightlyTrigger() {
        try {
            setName("nightlyTrigger");
            setCronExpression(CRONEXPRESSION);
        } catch (ParseException pe) {
            // handle gracefully
        }
        
    }
}